package com.net;

import java.math.BigInteger;
import java.util.Scanner;


public class Test 
{
	
 public static void main(String arg[])
 {
	 Scanner in = new Scanner(System.in);
	 String str= in.nextLine();
	 
	 System.out.println("Input password is  = " +str);
	 
	 String[] parts = str.split("_");
	 
	 StringBuilder srms = srms(parts[0]);
	 StringBuilder month = month(parts[1]);
	 StringBuilder year = year(parts[2]);
	 
	 System.out.println(" encypted password is  =  " +srms +"_" +month + "_"+year);
	

 }

private static StringBuilder year(String string)
{
	String num3 = string;
	
	char[] yPart = num3.toCharArray();
	
	StringBuilder sb3 = new StringBuilder();
	
	for(int i=0;i<yPart.length;i++)
	{
		char s3 = yPart[i];
		int num1 = (int)s3;
		num1 =num1+3;
		s3 = (char)num1;
		sb3.append(s3);
	}
	return sb3;
}

private static StringBuilder month(String month) 
{
	String month1 = month;
	       month1 = month1.toLowerCase();
	
	
	char[] mPart = month1.toCharArray();
	StringBuilder sb2 = new StringBuilder();
	
	for(int i=0;i<mPart.length;i++)
	{
		char s2 = mPart[i];
		int num1 = (int)s2;
		num1 =num1-5;
		
		if(num1>=97)
		{
			
			s2 = (char)num1;
			sb2.append(s2);
		}
		else
		{
			 num1 = 122-(96-num1) ;
				
			 
			 char s3 = (char)num1;
			
			 sb2.append(s3);
		}
	}
	
	return sb2;
}

private static StringBuilder srms(String srms)
{
	
 String srms1 = srms;
        srms1 = srms1.toUpperCase();
	 
	 
	 char[] cPart = srms1.toCharArray();
	
	 StringBuilder sb1 = new StringBuilder();	 
	 
 for(int i=0; i<cPart.length;i++)
	 {
		 char s1 = cPart[i];
		 int num =(int)s1;
		 num = num+7;
		 
		
		 
		 if(num<=90)
			{
				s1 = (char)num;
			
				sb1.append(s1);
			}
			else
			{
				 
				 num = (num-90)+64;
				
				 char s2 = (char)num;
				 sb1.append(s2);
			}		 
		}
	 return sb1;
}


	
}




 